package com.gdwstudy.extends01;

import com.gdwstudy.extend.Graduate;
import com.gdwstudy.extend.Pupil;

public class Test {
    public static void main(String[] args) {
        com.gdwstudy.extend.Pupil pupil = new Pupil();
        pupil.name = "小明";
        pupil.age = 12;
        pupil.testing();
        pupil.setScore(60);
        pupil.showInfo();
        System.out.println("------------");

        com.gdwstudy.extend.Graduate graduate = new Graduate();
        graduate.name = "大明";
        graduate.age = 22;
        graduate.testing();
        graduate.setScore(99);
        graduate.showInfo();
    }
}
